package com.kavenka.zhufengfm.app.tasks;

import android.os.AsyncTask;

/**
 * Created by kavenka on 2015/9/25 0025.
 */
public abstract class BaseTask extends AsyncTask<String ,Void,TaskResult> {
    private TaskCallBack taskCallBack;

    public BaseTask(TaskCallBack taskCallBack) {
        this.taskCallBack = taskCallBack;
    }

    @Override
    protected void onPostExecute(TaskResult result) {
        if (taskCallBack!=null){
            taskCallBack.onTaskFinished(result);
        }
    }
}
